package com.far.game.xiuzhen.common.database.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author mike
 * @since 2022-07-15
 */
@ApiModel(value = "Servers",description="游戏服务对象")
@TableName("xz_servers")
public class Servers extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "tid", type = IdType.AUTO)
    private Integer tid;

    /**
     * 父类自增编号
     */
    @ApiModelProperty(value = "父类自增编号")
    private Integer parentTid;

    /**
     * 服务器/区名称
     */
    @ApiModelProperty(value = "服务器/区名称")
    private String serverName;

    /**
     * 默认 0 开启 1关闭 2 更新
     */
    @ApiModelProperty(value = "默认  0 开启 1关闭 2 更新")
    private Integer stat;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createAt;

    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    private String createBy;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateAt;

    /**
     * 更新者
     */
    @ApiModelProperty(value = "更新者")
    private String updateBy;


    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public Integer getParentTid() {
        return parentTid;
    }

    public void setParentTid(Integer parentTid) {
        this.parentTid = parentTid;
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public Integer getStat() {
        return stat;
    }

    public void setStat(Integer stat) {
        this.stat = stat;
    }


    public LocalDateTime getCreateAt() {
        return createAt;
    }


    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }


    public LocalDateTime getUpdateAt() {
        return updateAt;
    }


    public void setUpdateAt(LocalDateTime updateAt) {
        this.updateAt = updateAt;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public String toString() {
        return "Servers{" +
        "tid=" + tid +
        ", parentTid=" + parentTid +
        ", serverName=" + serverName +
        ", stat=" + stat +
        ", createAt=" + createAt +
        ", createBy=" + createBy +
        ", updateAt=" + updateAt +
        ", updateBy=" + updateBy +
        "}";
    }
}
